package com.iot.openfeignblock;

import com.dc3.common.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
 * @Author 咕唧
 * @Date 2022/7/22 10:17
 * @Version 1.0
 */
@FeignClient(value = "iot-apicontrol")
public interface ApiCache {
    @PostMapping("/api/list/simple")
    R findAllApi2Dto();

    @PostMapping("/api/add")
    R  addApi(@RequestBody Set dc3ApiControlDto);

    @PostMapping("/delete")
    R deleteApi(@RequestParam String id);
}
